/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 托盘Entity
 * @author 托盘
 * @version 2019-12-21
 */
public class Container extends DataEntity<Container> {
	
	private static final long serialVersionUID = 1L;
	private int number;		// 空盘数量
	private String area;		// 所属区域
	private String name;		// 名称
	private WarehouseLoc c;		// 仓库
	private String ctype;		// 类型1托盘2物料想
	private String status;		// 状态 1可用0 不可用2 占用
	
	public Container() {
		super();
	}

	public Container(String id){
		super(id);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	@Length(min=0, max=200, message="所属区域长度必须介于 0 和 200 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public WarehouseLoc getC() {
		return c;
	}

	public void setC(WarehouseLoc c) {
		this.c = c;
	}
	
	@Length(min=0, max=255, message="类型1托盘2物料想长度必须介于 0 和 255 之间")
	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}
	
	@Length(min=0, max=1, message="状态 1可用0 不可用2 占用长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}